import { createRoot } from 'react-dom/client'
import App from '@/App'
import '@/styles/index.less'
import { BrowserRouter } from 'react-router-dom'
import { Provider } from 'react-redux'
import store from '@/stores'
import { ThemeProvider } from 'styled-components'
import theme from './assets/theme'
import '@ant-design/v5-patch-for-react-19'

createRoot(document.getElementById('root')!).render(
  <Provider store={store}>
    <ThemeProvider theme={theme}>
      <BrowserRouter>
        <App />
      </BrowserRouter>
    </ThemeProvider>
  </Provider>
)
